<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.7.14/vue.js"></script>
  <div id="box">
    {{content}}
    <hr>

    <!--
      v-bind语法
      1.可以动态绑定标签的属性值
      2.不能用于标签的内容,如innerhtml
    -->
    <img v-bind:src="src" alt="">
    <hr>
    <img :style="style" :src="src1" alt="">
  </div>
  <script>
    new Vue({
      el: '#box',
      data: {
        content: 'hello Vue',
        src: "./img/avatar_1.png",
        src1: './img/brand_goods_1.jpg',
        style: "width: 200px ; height: 300px;",

      }
    })
  </script>
</body>

</html>